<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    function goUrl() {
        alert('aaa');
        window.location.href = 'https://work.weixin.qq.com/ca/cawcde07edc87f11f3';
    }
</script>
<body>

<button
        onclick="goUrl()"
        style="margin-top: 110px;width: 110px;height: 33px;">
    跳转
</button>

</body>
</html>